package com.aspose.cells;

class zbim extends zcj {
   zbim(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      float var6 = 0.0F;
      float var7 = 0.0F;
      if (this.e.l.a.size() == 2) {
         var7 = var4 * (com.aspose.cells.b.a.ze.a((Object)(21600 - ((zak)this.e.l.a.get(0)).a())) / 21600.0F);
         var6 = var5 * com.aspose.cells.b.a.ze.a((Object)(10800 - ((zak)this.e.l.a.get(1)).a())) / 10800.0F;
      } else if (this.e.l.a.size() == 1) {
         if (((zak)this.e.l.a.get(0)).b() == 327) {
            var7 = var4 * (com.aspose.cells.b.a.ze.a((Object)(21600 - ((zak)this.e.l.a.get(0)).a())) / 21600.0F);
            var6 = var5 * 0.46666667F;
         } else {
            var7 = var4 * 0.23333333F;
            var6 = var5 * com.aspose.cells.b.a.ze.a((Object)(10800 - ((zak)this.e.l.a.get(0)).a())) / 10800.0F;
         }
      } else {
         var7 = var4 * 0.23333333F;
         var6 = var5 * 0.46666667F;
      }

      com.aspose.cells.b.a.b.a.ze var8 = new com.aspose.cells.b.a.b.a.ze();
      float var9 = (var5 - var6) / 2.0F;
      float var10 = var6 / 2.0F / (var9 + var6 / 2.0F) * var7;
      com.aspose.cells.b.a.b.zo[] var11 = new com.aspose.cells.b.a.b.zo[8];
      switch(this.e.a) {
      case 1:
      case 2:
         var11[0] = new com.aspose.cells.b.a.b.zo(var2, var3 + var9);
         var11[1] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var7, var3 + var9);
         var11[2] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var7, var3);
         var11[3] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5 / 2.0F);
         var11[4] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var7, var3 + var5);
         var11[5] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var7, var3 + var5 - var9);
         var11[6] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5 - var9);
         var11[7] = new com.aspose.cells.b.a.b.zo(var2 + var10, var3 + var9 + var6 / 2.0F);
         break;
      case 3:
      case 4:
         var11[0] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var9);
         var11[1] = new com.aspose.cells.b.a.b.zo(var2 + var7, var3 + var9);
         var11[2] = new com.aspose.cells.b.a.b.zo(var2 + var7, var3);
         var11[3] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5 / 2.0F);
         var11[4] = new com.aspose.cells.b.a.b.zo(var2 + var7, var3 + var5);
         var11[5] = new com.aspose.cells.b.a.b.zo(var2 + var7, var3 + var5 - var9);
         var11[6] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5 - var9);
         var11[7] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var10, var3 + var9 + var6 / 2.0F);
      }

      var8.b(var11);
      return var8;
   }
}
